﻿using Entity;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace Examination.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class sqlController1 : ControllerBase
    {
        private SMDBContext _context;
        public sqlController1(SMDBContext abContext)
        {
            _context = abContext;
        }
        [HttpGet]
        public IList<User> Get()
        {
            return _context.EntityUser.Where(s => s.FirstName == "1231").ToList();
        }
    }
}
